 <?php
class Form_UploadFile_UploadFile{
    public $_upload;
    public function __construct(){
        $this->_upload = new Zend_File_Transfer;
        $this->_upload->setDestination(APPLICATION_PATH.'/../public/upload/');
    }
    
    public function setValidator(){
    	$this->_upload->addValidator(‘Size’,true,’1’);    //chỉ cho phép file có dung lượng
    	//nhỏ hơn 1 KB
    }
} 